<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$url = 'catalog';
	if (sizeof($pages) > 0) {
		foreach ($pages as $page) {
			$item_link = $this->catalog_service_model->get_item_link($page['item_id']);
			echo "<div class='one-small-item'>";
				echo "<a href='".$item_link."#opinion_".$page['opinion_id']."'>".$page['item_title']."</a><br />";
				preg_match_all("/\[quote\sname\=\"(.*?)\"\]([^\[]*?)\[\/quote\]/isx", $page['opinion_text'], $matches, PREG_SET_ORDER);
				foreach ($matches as $match) {
					$page['opinion_text'] = str_replace($match[0], "", $page['opinion_text']);
				}
				echo mb_substr(htmlspecialchars_decode($page['opinion_text']), 0, 100)."...<br />";
				echo $page['opinion_name'];
				echo "<br class='cc'/>";
			echo "</div>";
		}
	} else {
		echo showmenotice('Список пуст');
	}
?>
